package com.game.service.game.turntable.config;

import java.util.ArrayList;

public class PrizeLuckyStore {
   private final ArrayList<PrizeLucky> prizeLuckyList = new ArrayList<>();

    public PrizeLuckyStore() {
        initStore();
    }

    private void initStore() {
        if (prizeLuckyList.isEmpty()) {
            {
                PrizeLucky prizeLucky = new PrizeLucky();
                prizeLucky.setPrizeLuckyID(100);
                prizeLucky.setPrizeCode("AA-100");//表示钻石100
                prizeLucky.setPrizeName("100 diamonds");
                prizeLucky.setLuckyValue(1000);
                prizeLucky.setPrizeDiamondSend(100);//增加玩家钻石
                prizeLucky.setPrizeRedemptionCode("AA");//为空表示是即时交易货币
                prizeLuckyList.add(prizeLucky);
            }

            {
                PrizeLucky prizeLucky = new PrizeLucky();
                prizeLucky.setPrizeLuckyID(101);
                prizeLucky.setPrizeName("1000 diamonds");
                prizeLucky.setLuckyValue(10000);
                prizeLucky.setPrizeCode("AA-1000");//表示钻石1000
                prizeLucky.setPrizeDiamondSend(1000);//增加玩家钻石
                prizeLucky.setPrizeRedemptionCode("AA");//为空表示是即时交易货币
                prizeLuckyList.add(prizeLucky);
            }
            {
                PrizeLucky prizeLucky = new PrizeLucky();
                prizeLucky.setPrizeLuckyID(102);
                prizeLucky.setPrizeName("10000 diamonds");
                prizeLucky.setLuckyValue(100000);
                prizeLucky.setPrizeCode("AA-10000");//表示钻石1000
                prizeLucky.setPrizeDiamondSend(10000);//增加玩家钻石
                prizeLucky.setPrizeRedemptionCode("AA");//为空表示是即时交易货币
                prizeLuckyList.add(prizeLucky);
            }
            {


                PrizeLucky prizeLucky = new PrizeLucky();
                prizeLucky.setPrizeLuckyID(103);
                prizeLucky.setPrizeName("Apple Watch Ultra2");
                prizeLucky.setLuckyValue(1500000);
                prizeLucky.setPrizeCode("BB-103");//表示实体
                prizeLucky.setPrizeDiamondSend(0);//增加玩家钻石
                prizeLucky.setPrizeRedemptionCode("BB");//为空表示是即时交易货币
                prizeLuckyList.add(prizeLucky);
            }

            {


                PrizeLucky prizeLucky = new PrizeLucky();
                prizeLucky.setPrizeLuckyID(104);
                prizeLucky.setPrizeName("iPhone16 Pro Max");
                prizeLucky.setLuckyValue(3000000);
                prizeLucky.setPrizeCode("BB-104");//表示实体
                prizeLucky.setPrizeDiamondSend(0);//增加玩家钻石
                prizeLucky.setPrizeRedemptionCode("BB");//为空表示是即时交易货币
                prizeLuckyList.add(prizeLucky);
            }

            {


                PrizeLucky prizeLucky = new PrizeLucky();
                prizeLucky.setPrizeLuckyID(105);
                prizeLucky.setPrizeName("MacBooK Pro Max");
                prizeLucky.setLuckyValue(4000000);
                prizeLucky.setPrizeCode("BB-105");//表示实体
                prizeLucky.setPrizeDiamondSend(0);//增加玩家钻石
                prizeLucky.setPrizeRedemptionCode("BB");//为空表示是即时交易货币
                prizeLuckyList.add(prizeLucky);
            }

        }
    }

    public ArrayList<PrizeLucky> getPrizeLuckyList() {
        if (prizeLuckyList.isEmpty()) {
            initStore();
        }
        return prizeLuckyList;
    }
}
